#!/usr/bin/env python
# -*- coding: utf-8 -*-  
import sys, os

def main(argv):
	try:
		if argv[1] != "-a":
			string = "java FuMath {0}".format(" ".join(argv[1:]))
		else:
			string = "java FuMaths {0}".format(" ".join(argv[2:]))
		string = string.strip()
		os.popen(string)
	except:
		os.system("java InteractiveMath")
	return 0

if __name__ == '__main__':
	main(sys.argv)

